package com.smartfactory.sail.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smartfactory.sail.entity.Cust;
import com.smartfactory.sail.vo.PageParam;

import java.util.Map;

/**
 * <p>
 * 客户信息 服务类
 * </p>
 *
 * @author 王巨壁
 * @since 2019-07-24
 */
public interface ICustService extends IService<Cust> {

    IPage<Cust> listSuppliers(Map<String, Object> queryParam, PageParam pageParam);
    IPage<Cust> listCust(Map<String, Object> queryParam, PageParam pageParam);

    /**
     * 修改最近合作时间
     *
     * @param custId
     * @param time
     * @return
     */
    boolean updateCooperationTime(Long custId, String time);

    Long saveCustByOrderInfo(Cust cust,String contractType,String contractINfo);

    Cust queryCustByName(String custName);
}
